
package bean.reflection.indexed;

/**
 * 一個測試用的 java bean, 多了一個 property , type 為 Array<br>
 * 請和 ComplexBean 做比較, 在這裏只用取得名字的 method, 不用設定名字的 method<br>
 * <br>
 * Copyright: Copyright (c) 2001-2007<br>
 * Company: 一零四資訊科技股份有限公司
 * 
 * @author Eric.Kao(eric.kao@104.com.tw)
 * @version 1.0
 */
public class MyBean
{
	private String[] names =
		{ "eric", "loso", "david" };

	private String address;

	private boolean selected;

	public MyBean()
	{
	}

	public String getName( int index )
	{
		return names[ index ];
	}

	public String getAddress()
	{
		return address;
	}

	public boolean isSelected()
	{
		return selected;
	}

	public void setAddress( String address )
	{
		this.address = address;
	}

	public void setSelected( boolean selected )
	{
		this.selected = selected;
	}
}
